package com.bsj.power.job.service;

import com.bsj.power.common.config.global.JsonResult;
import com.bsj.power.common.def.dto.PageDTO;
import com.bsj.power.common.def.entity.exp.Experience;
import com.bsj.power.common.def.dto.job.ExperienceDTO;

import java.util.List;

/**
 * @author yinhao
 * @version 1.0
 * @description 经验反馈
 * @date 2024/5/28
 */
public interface ExperienceService {

    /**
     * 新增修改经验
     * @param vo
     * @return
     */
    JsonResult addAndUpdate(ExperienceDTO vo) throws Exception;

    /**
     * 获取经验反馈列表
     * @param dto
     * @return
     */
    JsonResult<List<Experience>> pageList(PageDTO dto);

    /**
     * 根据ID获取详情
     * @param experienceId
     * @return
     */
    JsonResult<Experience> findIdByInfo(Long experienceId);

    /**
     * 批量删除
     * @param experienceIds
     * @return
     */
    JsonResult<Integer> deleteByIds(Long[] experienceIds);
}
